<?php
$endTime=strtotime("2021-05-22 10:00:00");
$cha=$endTime - time();
if ($cha > 0){
    echo json_encode(array('s'=>'n','c'=>$cha));
}else{
    echo json_encode(array('s'=>'k'));
}
?>